package com.welfare.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.common.util.AJAXResultMessage;
import com.welfare.entity.Welfare;
import com.welfare.entity.dto.WelfareQueryDTO;

public interface IWelfareService {
	public AJAXResultMessage saveOrUpdate(Welfare welfare);
	
	public void delete(Welfare welfare);
	public Welfare findOne(Long id);
	public List<Welfare> findAll();
	public void delete(List<Long>ids);
	//动态条件查询
	public Page<Welfare> findAll(Specification<Welfare> spec, Pageable pageable);	
}
